/**
 * Notes: 系统配置实体 
 * Date: 2023-05-20 09:05:00 
 * Ver : CCMiniCloud Framework 2.0.6 ALL RIGHTS RESERVED BY CCLINUX0730 (wechat)
 */

const BaseModel = require('./base_model.js');

class ConfigModel extends BaseModel {

}

// 集合名
ConfigModel.CL = BaseModel.C('config');

ConfigModel.DB_STRUCTURE = {
    _pid: 'string|true',
    CONFIG_ID: 'string|true',
    CONFIG_KEY: 'string|true|comment=配置键',
    CONFIG_VALUE: 'string|true|comment=配置值',
    CONFIG_TYPE: 'int|true|default=0|comment=配置类型：0=系统配置 1=用户配置',
    CONFIG_DESC: 'string|false|comment=配置描述',
    CONFIG_STATUS: 'int|true|default=1|comment=状态：0=禁用 1=启用',
    
    CONFIG_ADD_TIME: 'int|true',
    CONFIG_EDIT_TIME: 'int|true',
    CONFIG_ADD_IP: 'string|false',
    CONFIG_EDIT_IP: 'string|false',
};

// 字段前缀
ConfigModel.FIELD_PREFIX = "CONFIG_";

module.exports = ConfigModel; 